home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #12 / Amiga Plus CD - 2002 - No. 12.iso / AmigaOS / Aplus_Dev / AP-Website / links / themes / original / footer.php < prev    next >
Encoding:
PHP Script  |  2002-10-28  |  1.9 KB  |  90 lines

  1. <?
  2. // *******************************************************************
  3. //  themes/original/footer.php
  4. // *******************************************************************
  5.  
  6. $html = $table4 . "\t\t<tr>\r\n\t\t\t<td width=\"100%\" ";
  7. $html .= "align=\"center\" class=\"footerText\">";
  8.  
  9. $sql = sql_query("
  10.     select
  11.         ID
  12.     from
  13.         $tb_categories
  14. ");
  15.  
  16. $html .= " Total Categories: " . (sql_num_rows($sql)+0);
  17.  
  18. $sql = sql_query("
  19.     select
  20.         ID
  21.     from
  22.         $tb_links
  23. ");
  24.  
  25. $html .= "  Total Links: " . (sql_num_rows($sql)+0);
  26.  
  27. $sql = sql_query("
  28.     select
  29.         ID
  30.     from
  31.         $tb_terms
  32. ");
  33.  
  34. $html .= "  Searches Performed: " . (sql_num_rows($sql)+0);
  35.     
  36. $sql = sql_query("
  37.     select
  38.         sum(HitsIn) as hits_in
  39.     from
  40.         $tb_links
  41. ");
  42.  
  43. $rows = sql_fetch_array($sql);
  44.  
  45. $html .= "  Hits In: " . ($rows["hits_in"]+0);
  46.  
  47. $sql = sql_query("
  48.     select
  49.         sum(HitsOut) as hits_out
  50.     from
  51.         $tb_links
  52. ");
  53.  
  54. $rows = sql_fetch_array($sql);
  55.  
  56. $html .= "  Hits Out: " . ($rows["hits_out"]+0);
  57.  
  58. $sql = sql_query("
  59.     select
  60.         count(*) as count
  61.     from
  62.         $tb_sessions
  63.     where
  64.         expire > UNIX_TIMESTAMP() - 300
  65. ");
  66.  
  67. $rows = sql_fetch_array($sql);
  68.  
  69. $html .= "  Visitors Online: " . ($rows["count"]+0);
  70.  
  71. $html .= "</td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td class=\"footerText\" align=\"center\">";
  72.  
  73. if($SERVER_NAME != "phplinks.org" && $SERVER_NAME != "dev.phplinks.org"){
  74.     $html .= "<a class=\"footerLink\" href=\"index.php?" . session_name() . "=";
  75.     $html .= session_id() . "\">" . $gl["SiteTitle"] . "</a> ";
  76. }
  77.  
  78. $html .= "<!-- Removing this code makes you an ungrateful ass! -->";
  79. $html .= "Powered By <a class=\"footerLink\" ";
  80. $html .= "href=\"http://phplinks.org/phplinks/in.php?ID=4\">phpLinks</a>";
  81. $html .= "<!-- Removing this code makes you an ungrateful ass! -->";
  82. $html .= "</td>\r\n\t\t</tr>\r\n\t\t</table>\r\n\r\n\t\t";
  83.  
  84. echo footertable("100%","center",$html);
  85. unset($html);
  86.  
  87. echo $html;
  88.  
  89. ?>
  90.